package com.ruoyi.manage.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.manage.mapper.LocationAllMapper;
import com.ruoyi.manage.domain.LocationAll;
import com.ruoyi.manage.service.ILocationAllService;

/**
 * 定位信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-01-07
 */
@Service
public class LocationAllServiceImpl implements ILocationAllService 
{
    @Autowired
    private LocationAllMapper locationAllMapper;

    /**
     * 查询定位信息
     * 
     * @param id 定位信息ID
     * @return 定位信息
     */
    @Override
    public LocationAll selectLocationAllById(String id)
    {
        return locationAllMapper.selectLocationAllById(id);
    }

    /**
     * 查询定位信息列表
     * 
     * @param locationAll 定位信息
     * @return 定位信息
     */
    @Override
    public List<LocationAll> selectLocationAllList(LocationAll locationAll)
    {
        return locationAllMapper.selectLocationAllList(locationAll);
    }

    /**
     * 新增定位信息
     * 
     * @param locationAll 定位信息
     * @return 结果
     */
    @Override
    public int insertLocationAll(LocationAll locationAll)
    {
        locationAll.setCreateTime(DateUtils.getNowDate());
        return locationAllMapper.insertLocationAll(locationAll);
    }

    /**
     * 修改定位信息
     * 
     * @param locationAll 定位信息
     * @return 结果
     */
    @Override
    public int updateLocationAll(LocationAll locationAll)
    {
        return locationAllMapper.updateLocationAll(locationAll);
    }

    /**
     * 批量删除定位信息
     * 
     * @param ids 需要删除的定位信息ID
     * @return 结果
     */
    @Override
    public int deleteLocationAllByIds(String[] ids)
    {
        return locationAllMapper.deleteLocationAllByIds(ids);
    }

    /**
     * 删除定位信息信息
     * 
     * @param id 定位信息ID
     * @return 结果
     */
    @Override
    public int deleteLocationAllById(String id)
    {
        return locationAllMapper.deleteLocationAllById(id);
    }
}
